package com.dkd.manage.pojo.entity;

import com.dkd.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 策略管理对象 tb_policy
 *
 * @author itgn
 * @date 2025-05-24
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Policy {
    private static final long serialVersionUID = 1L;
    /**
     * 策略id
     */
    private Long policyId;

    /**
     * 策略名称
     */
    @Excel(name = "策略名称")
    private String policyName;

    /**
     * 策略方案
     */
    @Excel(name = "策略方案")
    private Long discount;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 更新者
     */
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
